package com.rmi.service;

import com.rmi.IHelloService;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

public class Client {

    public static void main(String[] args) throws RemoteException, NotBoundException, MalformedURLException {
        IHelloService iHelloService = (IHelloService)Naming.lookup("rmi://127.0.0.1:8088/hello");


        System.out.println( iHelloService.say("aaa"));;
    }
}
